<?php
/**
 * Copyright (C), 2021-2021, Shall Buy Life info. Co., Ltd.
 * FileName:ExampleController.php
 * Description:
 *
 * @author:
 * @Create Date    2021/11/03 10:28:59
 * @Update Date    2021/11/03 10:28:59
 * @version v1.0
 */

namespace Example\Controllers;

use App\Http\Controllers\Controller;
use Example\Filters\ExampleFilter;
use Illuminate\Http\Request;
use Example\Services\ExampleService;

class ExampleController extends Controller
{
    /**
     * @var Request
     */
    protected $service;
    public function __construct(ExampleService $service)
    {
        $this->service = $service;
    }

    /**
     * FunctionName：store
     * Description：创建
     * Author：lwl
     * @return null
     */
    public function store()
    {

    }

    /**
     * FunctionName：list
     * Description：列表
     * Author：lwl
     * @return null
     */
    public function list()
    {

    }

    /**
     * FunctionName：show
     * Description：详情
     * Author：lwl
     * @return null
     */
    public function show()
    {

    }

    /**
     * FunctionName：edit
     * Description：更新
     * Author：lwl
     * @return null
     */
    public function edit()
    {

    }

    /**
     * FunctionName：getAll
     * Description：全部数据
     * Author：lwl
     * @return null
     */
    public function getAll(ExampleFilter $filter)
    {
        return $this->service->getAll($filter);
    }

    /**
     * FunctionName：remove
     * Description：删除
     * Author：lwl
     * @return null
     */
    public function remove()
    {

    }

    /**
     * FunctionName：switch
     * Description：开启/关闭
     * Author：lwl
     * @return null
     */
    public function switch()
    {

    }

}
